package com.neuedu.mapper;

import com.neuedu.po.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmpMapper {

    @Select("select * from emp ")
    List<Emp> getEmpList();

    int editEmp(Emp emp);

    int deleteEmp(Integer empno);

    @Select("select * from emp where ename like concat('%',#{search},'%')")
    List<Emp> getEmpListByEname(String search);

    int insertEmp(Emp emp);
}
